﻿using System.Collections.Generic;
using System.Web;

namespace Mvc3Demo.Test.WebCore
{
    public class HttpSessionStateBaseStub : HttpSessionStateBase
    {
        readonly Dictionary<string, object> _data = new Dictionary<string, object>();

        public override object this[string key]
        {
            get
            {
                if (_data.ContainsKey(key))
                    return _data[key];
                else
                {
                    return null;
                }
            }
            set
            {
                _data[key] = value;
            }
        }
    }
}